/* ConversationSidebar Styles */
.conversation-sidebar-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-conversations {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.conversation-item {
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.2s;
  margin-bottom: 4px;
}

.conversation-item:hover {
  background-color: #f5f5f5;
}

.conversation-item.active {
  background-color: #e6f7ff;
}

.conversation-item-content {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.conversation-icon {
  font-size: 16px;
  color: #1890ff;
  flex-shrink: 0;
}

.conversation-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.conversation-item-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.conversation-item-preview {
  font-size: 12px;
  line-height: 16px;
  margin-top: 2px;
}

.conversation-delete-btn {
  opacity: 0;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.conversation-item:hover .conversation-delete-btn {
  opacity: 1;
}

.conversation-delete-btn:hover {
  color: #ff4d4f;
}

/* Mobile styles */
.conversation-item.mobile {
  min-height: 48px;
  padding: 12px 16px;
  -webkit-tap-highlight-color: transparent;
}

.conversation-item.mobile:active {
  background-color: #f0f0f0;
}

.conversation-item.mobile.active:active {
  background-color: #d1ebff;
}

.sidebar-menu-item {
  transition: background-color 0.2s;
}

.sidebar-menu-item:active {
  background-color: #f5f5f5;
}

.sidebar-menu-item.danger:active {
  background-color: #fff1f0;
}

@media (max-width: 767px) {
  .sidebar-header {
    padding: 12px;
  }

  .conversation-item {
    min-height: 48px;
    padding: 12px 16px;
  }

  .conversation-delete-btn {
    display: none;
  }
}